﻿@model EventPlanner.Models.UserViewModel

@{
    ViewBag.Title = "Mi Cuenta";
    string rol = EventPlanner.Authorization.util.GetUserRole(User.Identity.Name);
        
   
}
 <div class="subtitle">
<h2>@EventPlanner.Resources.Global.Global.lbl_MiCuenta</h2>
</div>
<p></p>
<fieldset>
    

    <div class="display-label" id="userNameLabel" >@EventPlanner.Resources.Global.Global.lbl_NombreUsuario</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.UserName)
    </div>

    <div class="display-label" id="emailLabel">@EventPlanner.Resources.Global.Global.lbl_Correo</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Email)
    </div>

    <div class="display-label" id="lastSeenLabel">@EventPlanner.Resources.Account.Details.lbl_UltimaVezVisto</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.LastSeen)
    </div>

    <div class="display-label" id="creationDateLabel">@EventPlanner.Resources.Account.Details.lbl_FechaCreacion</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Created)
    </div>

     <div class="display-label" id="accountTypeLabel">@EventPlanner.Resources.Account.Details.lbl_TipoCuenta</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Role)
    </div>

     <div class="display-label" id="activeLabel">@EventPlanner.Resources.Account.Details.lbl_Activa</div>
    <div class="display-field">
        @if (Membership.GetUser(Model.UserName).IsApproved)
        { 
            @Html.Raw(@EventPlanner.Resources.Global.Global.lbl_Si);
        }
        else
        {
            @Html.Raw(@EventPlanner.Resources.Global.Global.lbl_No);
        }
    </div>


</fieldset>
<p>
    @Html.ActionLink(@EventPlanner.Resources.Account.Details.lbl_CambiarContraseña, "ChangePassword") |
    @Html.ActionLink(@EventPlanner.Resources.Account.Details.lbl_DesactivarCuenta, "Deactivate", new { Name = User.Identity.Name },
    new { onclick = "return confirm('¿Está seguro que desea desactivar su cuenta?');" })                      
</p>
